package com;

import org.junit.Test;

/**
 * @author Liangyaoyun
 */
//父类是抽象类，子类可以通过Ctrl+O来快速重写父类中的抽象方法
public class 抽象测试 {
    private static abstract class Fu{
        public abstract void  Car();
        public void m01(){};
        String name;
        Integer age;

    }

    private static class Zi extends Fu {
        @Override
        public void Car() {
            System.out.println("我是奥迪汽车");
        }
    }
    @Test
    public void test01(){
        Fu zi=new Zi();
        zi.age=15;
    }
}
